package com.xinyu.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author: XinYu
 * @since 2025-02-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_task")
@ApiModel(value="Task对象", description="")
public class Task implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String title;

    private String description;

    private Integer responsibleUserId;

    private Integer publishUserId;

    private Integer state;
    //最后一次修改状态时的理由
    private String stateReason;

    private String estimatedTime;//预估时间

    private String completedTime;//实际完成时间

    private String publishTime;//发布时间
    @TableField(exist = false)
    private Integer dailyId;
    @TableField(exist = false)
    private Daily daily;
    @TableField(exist = false)
    private User responsibleUser;
    @TableField(exist = false)
    private User publishUser;

    @TableField(exist = false)
    private List<TaskStateHistory> taskStateHistoryList;

}
